Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 5 - Objects and References / Reference Forms


Property

The Property reference form specifies a property of an application object, a script object, a record, or a date.

SYNTAX
propertyLabel
where

propertyLabel is the label for the property.

EXAMPLES
The following example is a reference to the Name property of the front window. It lists the label for the property (name) and its container
(front window).

name of front window
The following example is a reference to the UnitPrice property of a record. (A record is an AppleScript value that consists of a collection of properties. For more information about records, see Chapter 3, "Values.") The label of the property is UnitPrice and the container is the record.

UnitPrice of {Product:"Super Snack", UnitPrice:0.85, Quantity:10}
NOTES
Property labels are listed in object class definitions in application dictionaries. Because a property's label is unique among the properties of an object, the label is all you need to distinguish a property from all the other properties of the object. Unlike other reference forms, there is no need to specify the class of
the object.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996